import App from './App'
import uView from "uview-ui";
Vue.use(uView);

// 设置文件访问基础地址信息
Vue.prototype.BaseFileURL = 'http://ts.lagou.uieee.com/api/v2/files/'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
//
import store from '@/store/index.js'

// 引入 共用组件
import navbar from '@/components/uniNavBar.vue'
Vue.component('uni-nav-bar',navbar)
// 引入共用的组件，登入模块
import login from '@/components/login.vue'
Vue.component('login',login)

App.mpType = 'app'
const app = new Vue({
    ...App,
	store
})

// http拦截器，将此部分放在new Vue()和app.$mount()之间，才能App.vue中正常使用
import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor, app)

// http接口API集中管理引入部分
import httpApi from '@/common/http.api.js'
Vue.use(httpApi, app)

app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app,
	store
  }
}
// #endif